<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<link href="/tk/views/jsp/user/lib/find.css" rel="stylesheet" type="text/css">
<div class="content w10 mt20">
	<div class="box box-border">
		<h3 class="box-title"> 请输入您的新密码，方便我们开始为您进行服务： </h3>
		<form action="<c:url value="/user/findUserPassword.s"/>" method="post" onsubmit="return beforeSubmit();">
			<input type="hidden" name="loginName" value="${loginName }">
			<ul class="box-main">
				<li>
					<label for="">密码:</label>
					<input type="password" name="loginPwd"  id="loginPwd" class="member-name" id="name">
				</li>
				<li>
					<label for="">重复密码:</label>
					<input type="password" name="conLoginPwd" id="conLoginPwd" class="member-name" id="name">
				</li>
				<li>
					<input type="submit" class="fn_btn fn_orange next-step" value="确定">
				</li>
			</ul>
		</form>
	</div>
</div>  
                         
<script>
function beforeSubmit(){
	//验证
	if($("#loginPwd").val()==""){
		layer.msg("请输入密码!");
		$("#loginPwd").focus();
		return false;
	}
	if($("#conLoginPwd").val()==""){
		layer.msg("请输入重复密码!");
		$("#conLoginPwd").focus();
		return false;
	}

	if($("#loginPwd").val()!=$("#conLoginPwd").val()){
		layer.msg("两次密码不一致!");
		$("#conLoginPwd").focus();
		return false;
	}
	return true;
}
</script>